#ifndef _TIMER0
#define _TIMER0

#include <avr/io.h>
#include <stdlib.h>
#include <avr/interrupt.h>


#define clockCyclesPerMicrosecond() ( F_CPU / 1000000L )
#define clockCyclesToMicroseconds(a) ( (a) / clockCyclesPerMicrosecond() )
#define microsecondsToClockCycles(a) ( (a) * clockCyclesPerMicrosecond() )

unsigned long millis(void);
unsigned long micros(void);
void initTimer0(void);
void delaymicro(unsigned int);
void delay(unsigned int);
#endif
